<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <!-- 引入Element Plus的CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-plus@2.3.12/dist/index.css" />
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    
    <!-- 先引入Vue -->
    <script src="https://unpkg.com/vue@3.2.47/dist/vue.global.prod.js"></script>
    <!-- 再引入Element Plus -->
    <script src="https://unpkg.com/element-plus@2.3.12"></script>
    <script src="https://unpkg.com/@element-plus/icons-vue@2.1.0"></script>
    
    <script>
      // 确保Element Plus全局可用
      window.onload = function() {
        if (window.ElementPlus) {
          console.log('Element Plus loaded successfully');
        } else {
          console.error('Element Plus failed to load');
        }
      }
    </script>
  </body>
</html>
